package cn.edu.qfnu.oj.service;


import cn.edu.qfnu.common.exception.db.RecordAlreadyExistedException;
import cn.edu.qfnu.common.exception.db.WrongParameterException;
import cn.edu.qfnu.oj.entity.Student;

public interface UserService {

    /**
     * 学生的注册
     * @param student 要注册的学生
     */
    void register(Student student)
            throws RecordAlreadyExistedException;

    Object login(String username, String password, String identity)
            throws WrongParameterException;

    boolean isExist(String id, String email);

    Object isWho(String id, String email);

    void update(Object user);

    Object pwdUpdate(Object user, String old, String newPwd) throws WrongParameterException;

}
